@import 'variables.scss';

/******************************
 JOURNAL GRID
*******************************/

@media only screen and (max-width: 1220px) {
  @for $i from 1 through 20{
    .lg-#{$i * 5} {
      width: $i * 5%;
    }
  }
  .lg-11{
    width: 11.11111111111111%;
  }
  .lg-12{
    width: 12.5%;
  }
  .lg-14{
    width: 14.28571428571429%;
  }
  .lg-16{
    width: 16.66666666666666%;
  }
  .lg-33{
    width: 33.33333333333333%;
  }
  .lg-66{
    width: 66.66666666666666%;
  }
}

@media only screen and (max-width: 980px) {
  @for $i from 1 through 20{
    .md-#{$i * 5} {
      width: $i * 5%;
    }
  }
  .md-11{
    width: 11.11111111111111%;
  }
  .md-12{
    width: 12.5%;
  }
  .md-14{
    width: 14.28571428571429%;
  }
  .md-16{
    width: 16.66666666666666%;
  }
  .md-33{
    width: 33.33333333333333%;
  }
  .md-66{
    width: 66.66666666666666%;
  }
}

@media only screen and (max-width: 760px) {
  @for $i from 1 through 20{
    .sm-#{$i * 5} {
      width: $i * 5%;
    }
  }
  .sm-11{
    width: 11.11111111111111%;
  }
  .sm-12{
    width: 12.5%;
  }
  .sm-14{
    width: 14.28571428571429%;
  }
  .sm-16{
    width: 16.66666666666666%;
  }
  .sm-33{
    width: 33.33333333333333%;
  }
  .sm-66{
    width: 66.66666666666666%;
  }
}

@media only screen and (max-width: 470px) {
  @for $i from 1 through 20{
    .xs-#{$i * 5} {
      width: $i * 5%;
    }
  }
  .xs-11{
    width: 11.11111111111111%;
  }
  .xs-12{
    width: 12.5%;
  }
  .xs-14{
    width: 14.28571428571429%;
  }
  .xs-16{
    width: 16.66666666666666%;
  }
  .xs-33{
    width: 33.33333333333333%;
  }
  .xs-66{
    width: 66.66666666666666%;
  }
}

/******************************
 GENERAL
*******************************/
.mobile .hide-on-mobile{
  display: none !important;
}

@media only screen and (max-width: 1024px) {
  .product-grid-item, .product-list-item{
    &:hover .image > a > img{
      opacity: 1;
      -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
      transition: opacity 0;
    }
  }
  .p-over, .quickview-button, .gallery-thumb a:before, .gallery-thumb .item-hover {
    display: none;
  }
}

@media only screen and (max-width: 980px) {
  .hide-on-mobile{
    display: none !important;
  }
  #container, #header{
    max-width: 100%;
  }
}

@media only screen and (max-width: 760px) {
  #cart .content{
    width: 100%;
  }
  .login-content .left{
    width: 100%;
    margin-bottom: 30px;
  }
  .login-content .right{
    width: 100%;
  }
  .login-content .left p:nth-child(2) {
    min-height: 55px;
  }
  .side-block-left,
  .side-block-right{
    display: none;
  }
  .heading-title, .box-heading{
    max-height: 100%;
  }
}

@media only screen and (max-width: 470px) {
  table.form td{
    display: block;
  }
}

/******************************
HEADER
*******************************/

@media only screen and (max-width: 980px) {
  .journal-desktop .sticky-wrapper{
    max-height: 160px;
  }
  .journal-menu{
    clear: both;
  }
  .journal-header-default.nocart-nosearch{
    .journal-menu{
      clear: none;
    }
  }
  #cart{
    box-shadow: none;
  }
  .sticky-wrapper{
    height: auto !important;
  }
}

@media only screen and (max-width: 760px) {
  header {
    .links > a{
      border-bottom-color: $e4;
      border-top-style:solid;
      border-top-width: 1px;
    }
    .journal-login{
      border-bottom: 1px solid $e4;
    }
  }
}

//Top Menu Mobile View
@media only screen and (max-width: 760px) {
  .journal-header{
    .text-only{
      > i{
        display: none;
      }
    }
    .icon-only{
      > i{
        font-size: 185% !important;
      }
      > span{
        display: none;
      }
    }
  }
}


/******************************
 HEADER CENTER
*******************************/

@media only screen and (max-width: 1024px + 15px) {
  .journal-header-default{
    &.nocart{
      .links > a:last-child{
        border-right-width: 0;
      }
    }
  }
}


@media only screen and (max-width: 760px) {

  .hide-on-mobile{
    display: none !important;
  }

  .journal-header-center{
    box-shadow: none;
    .journal-cart, .journal-search, .journal-secondary, .journal-links{
      padding: 0;
    }

    .journal-search, .journal-cart{
      top: 0;
    }

    .journal-top-header{
      border-bottom-width: 0;
    }

    #search input{
      border-radius:0;
      border-right: 1px solid transparent;
      border-top: 1px solid transparent;
    }
    .button-search {
      border-radius: 0;
    }
    .journal-cart {
      border-radius:0;
      #cart .heading a span{
        border-top: 1px solid transparent;
      }
      #cart{
        border-radius: 0;
        .content {
          padding-top: 0;
          .cart-wrapper{
            border-radius: 0;
          }
          &:before{
            display: none;
          }
        }
      }
      #cart .heading i{
        border-radius: 0;
      }
    }
    .journal-language, .journal-currency{
      padding: 0;
      margin-right: 0;
      position: absolute;
      min-width: 40px;
      z-index: 99;
    }
    .journal-language{
      left: 0;
    }
    .journal-currency{
      right: 0;
    }

    .journal-language form{
      text-align: left;
      > div{
        border-left: 0;
      }
    }
    .journal-currency form{
      text-align: right;
      > div{
        border-right: 0;
        border-left: 1px solid $e4;
      }
    }
    .lang, .curr{
      form{
        display: block;
      }
    }
    .journal-center-bg{
      top: 80px;
    }
    .journal-secondary{
      width: 100%;
      text-align: center;
      clear: both;
      background-color: $verylight;
      border-bottom: 1px solid $e4;
      border-top: 1px solid $e4;
    }
    .links{
      float: none !important;
      margin: 0 auto;
    }

    .autocomplete2-suggestions{
      top: 40px;
      border-radius: 0;
      &:before{
        display: none;
      }
    }

    .autocomplete2-selected:first-child,
    .autocomplete2-selected:last-child,
    .autocomplete2-suggestion:first-child > a > span > img,
    .autocomplete2-suggestion:last-child > a > span > img{
      border-radius: 0;
    }

  }
  .journal-top-header{
    border-bottom: none;
  }
}

@media only screen and (max-width: 470px) {
  #cart .content{
    min-width: 100%;
  }
}


/******************************
EXTENDED MENU
*******************************/

@media only screen and (max-width: 980px) {
  .journal-header-menu{
    #cart{
      height: 40px;
      box-shadow: none;
    }
    .j-50{
      height: 40px;
    }
    .j-med{
      height: 120px;
    }
    &.nocart-nosearch{
     .j-med{
       height: 80px;
     }
    }
  }
}

/******************************
 MEGA MENU
*******************************/

@media only screen and (max-width: 1024px) {
.super-menu > li:first-of-type{
  border-left: none;
}
}

@media only screen and (max-width: 980px) {
  .journal-header-default{
    .super-menu > li > div{
      left: 0;
      margin-left: 0;
    }
  }
}

@media only screen and (max-width: 760px) {

  .mobile-trigger{
    display: block;
    height: 40px;
    line-height: 40px;
    text-transform: uppercase;
    width: 100%;
    font-size: 16px;
    padding-left: 10px;
    background-color: $gray;
    cursor: pointer;
    &:before{
      content: "\e618";
      margin-right: 10px;
      font-size: 23px;
      float: left;
    }
  }

  .journal-mobile .mega-menu,  .journal-mobile .html-menu{
    position: relative;
  }

  .journal-menu .mobile-menu li:last-of-type{
    border-right: none;
  }

  .menu-open, .super-menu .menu-open{
    border-bottom: 1px solid $dark;
  }

.journal-menu{
    height: auto;
    .mobile-menu{
      display: none;
     > li{
        position: relative;
        display: block;
        border-bottom: 1px solid $dark;
        border-left: none;
        border-right: none;
        left: 0;
        .mobile-plus{
          display: none;
          width: 40px;
          height: 40px;
          line-height: 35px;
          font-size: 25px;
          font-weight: bold;
          z-index: 99;
          top: 0;
          right:0;
          position: absolute;
          text-align: center;
          cursor: pointer;
          color: white;
          background-color: darken($gray, 7%);
          border-left: 1px solid $dark;
        }
        > ul {
            left: 0 !important;
            li{
            .mobile-plus{
              border-left: none;
              height: 39px;
            }
          }
        }

        > a{
          text-align: left;
          padding-left: 10px;
        }
      }
      li:last-of-type{
        border-bottom: none;
      }

      > li > ul + .mobile-plus,
      > li > div + .mobile-plus,
      > li > span + .mobile-plus,
      > li > ul li .mobile-plus{
        display: block;
      }
    }
  }
}

/******************************
Dropdown
*******************************/
@media only screen and (max-width: 760px) {
  .mobile-menu{
    .drop-down{
      > ul{
        display: none;
      }
      ul{
        width: 100%;
        position: relative;
        box-shadow: none;
        left: 0;
        visibility: visible;
        opacity: 1;
        display: none;
        li{
          color: $dark;
          position: relative;
          border-bottom: 1px solid $f4;
        }
      }
    }
  }
}


/******************************
 PRODUCT PAGE
*******************************/

@media only screen and (max-width: 1040px) {
  #column-left + #column-right + #content{
    .product-info {
      > div{
        display: block;
        width: 100%;
        float: none;
      }
      .right{
        padding: 0;
        margin-top: 15px;
        .text-qty{
          display: none;
        }
      }
    }
  }
}


@media only screen and (max-width: 980px) {
  .product-info {
    .right{
      .cart div {
        .links{
          span{
            display: none;
          }
          a{
            width: 100%;
            display: block;
          }
          a:first-of-type{
            margin-bottom: 10px;
          }
        }
      }
    }
    &.split-60-40{
      .right{
        .cart div .qty{
          width: 100%;
          margin-bottom: 10px;
        }
        .cart div .button{
          width: 100%;
        }
      }
    }
  }
  #column-left + #content,
  #column-right + #content{
    .product-info {
      > div{
        display: block;
        width: 100%;
        float: none;
      }
      .right{
        padding: 0;
        margin-top: 15px;
        .text-qty{
          display: none;
        }
      }
    }
  }
}


@media only screen and (max-width: 980px){
  .social{
    padding-top: 10px;
  }
}


@media only screen and (max-width: 760px) {
  .product-info {
    > div{
      display: block !important;
      width: 100% !important;
    }
    .right{
      padding: 0;
      margin-top: 15px;
      .text-qty{
        display: none;
      }
    }
  }
  .social{
    padding-top: 10px;
  }
  #tabs{
    display: block;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    a{
      width: 100%;
    }
  }
  .tab-content{
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
}

@media only screen and (max-width: 460px) {
  .product-info .right .cart div .qty{
    width: 100%;
    margin-bottom: 10px;
  }
  .product-info .right .cart div .button{
    width: 100%;
  }
}

/******************************
 CATEGORY
*******************************/

@media only screen and (max-width: 980px) {
  .product-filter {
    > div b{
      display: none;
    }
  }
}

@media only screen and (max-width: 760px) {
  #column-left, #column-right, .column-left-bg, .column-right-bg{
    display: none !important;
  }
  #column-left + #content,
  #column-right + #content,
  #column-left + #column-right + #content,
  #column-left + span + #content,
  #column-right + span + #content,
  #column-left + #column-right + span + #content{
    margin: 0;
  }
}

@media only screen and (max-width: 470px) {
  .product-compare{
    display: none;
  }
  .product-list-item{
    .image{
      width: 100%;
      float: none;
      margin-bottom: 10px;
      img{
        float: none;
      }
    }
    .name{
      margin-left: 0;
    }
  }
}

.mobile .product-wrapper:hover{
  box-shadow:none;
  border-radius: none;
}

/******************************
CUSTOM SECTIONS
*******************************/

@media only screen and (max-width: 760px) {

  #top-modules .box-content,
  #bottom-modules .box-content{
    padding: 0 20px;
  }

  .extended-layout.home-page #content .box-heading{
   // margin:0 -20px 0 -20px;
  }

  .single-section{
    .box-sections.box-block{
      ul{
        li{
          min-width: 100%;
          float: none;
          margin-bottom: 0;
        }
      }
    }
  }
}

@media only screen and (max-width: 540px) {
  .box-sections{
    height: auto;
    ul{
      li{
        min-width: 100%;
        float: none;
        display: block;
        margin-bottom: 0;
        border-right: 0;
        border-bottom:1px solid;
        &:last-of-type{
          border-bottom:0;
        }
      }
    }
  }
}

/******************************
CAROUSEL
*******************************/

@media only screen and (max-width: 560px) {
  .journal-carousel{
    .htabs{
      height: auto;
      a{
        background-color: transparent;
        box-shadow: none;
        border-bottom-style:solid;
        border-bottom-width:1px;
        color: inherit;
        border-right: 0;
        width: 100%;
      }
      a:last-of-type{
        border-bottom: 0;
      }
    }
    .htabs.single-tab{
      a, a.selected, a:hover{
        border-bottom: 0;
      }
    }
  }
}

/******************************
 TABLES
*******************************/

@media only screen and (max-width: 540px) {
  table.list{
    .t-2, .t-3, .t-6, .t-span-3{
      display: none;
    }
    .t-span-1{
      display: table-cell;
    }
  }
}

/******************************
 ACCOUNT
*******************************/

@media only screen and (max-width: 760px) {
  .login-content{
    .login-wrap{
      min-height: 50px;
    }
    > div{
      min-height: 100%;
    }
  }
}

@media only screen and (max-width: 460px) {
  .order-list .order-info {
    text-align: center;
    padding: 5px 0;
    width: 50px;
  }
}

/******************************
 WISHLIST
*******************************/
@media only screen and (max-width: 460px) {
  .wishlist-info {
    .model, .stock{
      display: none;
    }
  }
}


/******************************
SHOPPING CART
*******************************/
@media only screen and (max-width: 760px) {
  .cart-info {
    .model, .price{
      display: none;
    }
  }
}

@media only screen and (max-width: 470px) {
  .cart-info {
    .quantity{
      display: none;
    }
  }
}

/******************************
CHECKOUT
*******************************/

@media only screen and (max-width: 470px) {

  .checkout-content {
    .left, .right{
      width: 100%;
    }

    table{
      table-layout: fixed;
      td{
        width: 50%;
      }
    }
    thead, tbody{
      .model, .quantity, .price{
        display: none;
      }
    }
    .button {
      display: block;
      float: right;
    }
    .buttons a{
      display: inline-block;
    }
    .buttons .right{
      text-align: left;
    }

    .left, #login{
      .button{
        float: none;
      }
    }
  }
}

/******************************
 SITEMAP
*******************************/
@media only screen and (max-width: 760px) {
   .sitemap-info {
      > div{
        width: 100%;
        padding: 0;
      }
      > div:first-of-type{
        padding: 0;
        padding-bottom: 20px;
      }
   }
}

/******************************
SEARCH PAGE
*******************************/
@media only screen and (max-width: 980px) {
  #content.search-page{
    h2{
      padding: 8px;
      line-height: 18px;
      height: auto;
    }
    .content{
      select{
        margin-bottom: 10px;
        display: block;
      }
      label{
        min-width: 235px;
        display: inline-block;
      }
    }
  }
}

/******************************
 FOOTER
*******************************/

@media only screen and (max-width:760px) {
  [data-hint]:before, [data-hint]:after{
    display: none !important;
  }
  footer{
    .contacts-left, .contacts-right{
      float: none;
    }
    .contacts-left{
      margin-bottom: 10px;
    }
    .bottom-footer{
        height: auto;
        overflow:visible;
        border-radius: 0;
      .copyright{
          float: none;
          height: 40px;
          line-height: 50px;
          padding-left:0;
          text-align: center;
          width: 100%;
        }
        .payments{
          padding-right: 0;
          width: 100%;
          text-align: center;
          padding-bottom: 10px;
          float: none;
        }
      }
   }
  #footer{
    .contacts{
      border-radius: 0;
    }
  }
}


@media only screen and (max-width: 470px) {
  footer{
    .contacts > div{
      text-align: left;
       > span{
         margin-bottom: 10px;
      }
      .no-name{
        display: inline-block;
        margin-bottom: 0;
      }
    }
    .bottom-footer{
      .copyright{
        line-height: 100%;
        padding-top: 12px;
      }
    }
  }
}

/******************************
PHOTO GALLERY
*******************************/

@media only screen and (max-width: 1024px) {
  .gallery-thumb{
    a:before, .item-hover{
      display: none;
    }
  }
}


/******************************
 CMS BLOCKS
*******************************/

@media only screen and (max-width: 760px) {
  .cms-block, .static-banner{
    margin-bottom: $margin;
  }
}

/******************************
EXTENDED LAYOUT
*******************************/


@media only screen and (max-width: 760px) {
  .extended-layout{
    #column-left + #content{
      padding: 0 0 20px 20px;
      margin-left: 0;
    }
    #column-right + #content{
      padding: 0px 20px 20px 0;
      margin-right: 0;
    }
    #column-left + #column-right + #content{
      padding: 0 20px 20px 20px;
      margin-left:0;
      margin-right: 0;
    }
  }
}

